package Chat.Donnees;

import java.io.Serializable;


// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.BE02C318-EF02-876C-916A-B657DD2B0E1C]
// </editor-fold> 
public class Contact implements Serializable {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.4C62EBD4-25D6-109B-67A5-893FC9FF7657]
    // </editor-fold> 
    private String nickname;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.13F0EC25-890A-1C7E-0127-12B63AD43234]
    // </editor-fold> 
    private String address;

    public Contact(String nickname, String address) {
        this.nickname = nickname;
        this.address = address;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.E9C9C577-2464-2338-E456-C4FB67663200]
    // </editor-fold> 
    public String getNickname () {
        return this.nickname;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.61B87FBB-C41F-487A-6CC0-B9F5ADD88810]
    // </editor-fold> 
    public String getAddress () {
        return this.address;
    }

    /**
     * @param nickname the nickname to set
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        String s = new String();
        s =  this.getNickname()+ ":" + this.getAddress();
        
        return s;
    }

}

